package com.ruoyi.applet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.brisk.common.annotation.Excel;
import com.brisk.common.core.domain.BaseEntity;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * weChatUser对象 wechat_user
 *
 * @author PengFei
 * @date 2022-05-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class WechatUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long userId;

    /**
     * 姓名
     */
    @Excel(name = "真实姓名")
    private String userName;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String userPhone;

    /**
     * 民族
     */
    @Excel(name = "用户民族")
    private String userNational;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /**
     * 用户积分
     */
    @Excel(name = "用户积分")
    private Integer userIntegral;

    /**
     * 用户头像
     */
    @Excel(name = "微信头像")
    private String userImg;

    /**
     * 用户昵称
     */
    @Excel(name = "微信昵称")
    private String userNickname;

    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;

    /**
     * 累计里程
     */
    @Excel(name = "累计里程")
    private BigDecimal mileage;

    /**
     * 累计兑换天数
     */
    @Excel(name = "累计兑换天数")
    private Integer daySum;

    /**
     * 小程序唯一标识
     */
    @Excel(name = "小程序唯一标识")
    private String openid;

    /**
     * 队伍ID
     */
    @Excel(name = "队伍ID")
    private Long teamId;

    /**
     * 队伍名称
     */
    @Excel(name = "队伍名称")
    private String teamName;


}
